package com.baidu.videoseries.constant;

import android.os.Environment;

/**
 * Created by leiyun on 2018/5/18.
 */
public class Config {
    /**
     * Created by sunmo on 2016/12/11.
     */
    public static class Key {
        public static final String MUSIC = "music";
        public static final String PROGRESS = "progress";
        public static final String MUSIC_LENGTH = "music_length";
        public static final String INDEX = "index";
        public static final String FILE = "file";
        public static final String FILE_LIST = "file_list";
        public static final String CURSOR_INDEX = "cursor_index";
        public static final String COMMAND = "command";
        public static final String STATUS = "status";
        public static final String TITLE = "title";
    }

    /**
     * Created by sunmo on 2016/12/11.
     */
    public static class MediaAction {
        public static final String ACTION_PLAY = "com.baidu.videoseries.PLAY";
        public static final String ACTION_PREPARED = "com.baidu.videoseries.PREPIRED";
        public static final String ACTION_COMMAND = "com.baidu.videoseries.COMMAND";
        public static final String ACTION_RESPONSE = "com.baidu.videoseries.response";
        public static final String ACTION_AUDIO_PLAYER = "com.baidu.videoseries.audio.player";
    }

    /**
     * Created by sunmo on 2016/8/1.
     */
    public static class Tags {
        public static final String SYS_PLAYER = "SYS_PLAYER";
        public static final String VIDEO_VIEW = "VIDEO_VIEW";
        public static final String MEDIA_PLAYER = "MEDIA_PLAYER";
        public static final String AUDIO = "AUDIO";
        public static final String AUDIO_NEW_PROGRESS = "AUDIO_NEW_PROGRESS";
        public static final String VLC_PLAYER = "VLC_PLAYER";
        public static final String TEST = "test";
    }

    /**
     * Created by sunmo on 2016/8/1.
     */
    public static class Urls {
        public static final String LOCAL_BM = Environment.getExternalStorageDirectory() + "/img/bm.mp4";
        public static final String VV_TEST = "rtsp://v2.cache2.c.youtube.com/CjgLENy73wIaLwm3JbT_%ED%AF%80%ED%B0%819HqWohMYESARFEIJbXYtZ29vZ2xlSARSB3Jlc3VsdHNg_vSmsbeSyd5JDA==/0/0/0/video.3gp";
        public static final String V_T = "http://dl58.80s.im:920/1607/[韩庚]一生所爱/[韩庚]一生所爱_bd.mp4";
        public static final String MUSIC_BASE = Environment.getExternalStorageDirectory() + "/kgmusic/download";
        public static final String VIDEO_HUHU = "http://audio.vsaker.com/ysecret/secret-1.mp4";
        public static final String QQ_VIDEO = "http://1254295440.vod2.myqcloud.com/76b14983vodgzp1254295440/2ef7a1d87447398156164496159/K8GfKNjnnBAA.mp4";
    }

    /**
     * command
     */
    public static final class Command {
        public static final int PLAY = 1;
        public static final int PAUSE = 2;
        public static final int NEXT = 3;
        public static final int PREVIOUS = 4;
        public static final int CURSOR_INDEX = 5;
        public static final int DATA_CHANGED = 6;
        public static final int PROGRESS_CHANGED = 7;
        public static final int FILE_CHANGED = 8;
        public static final int RES_DATA = 9;
    }

    /**
     * status
     */
    public static final class Status {
        public static final int START = 1;
        public static final int PLAYING = 2;
        public static final int PAUSE = 3;
        public static final int COMPLETE = 4;
    }
}
